package com.antu.first.bean;

/**
 * 用户权限
 * Created by Administrator on 2018/3/4.
 */
public class Auth {

    private int auId;//权限Id

    private String auName;//权限名称

    private int auFaceTo;//面向酒店还是面向平台

    private Merchant merchant;//如果是面向酒店的管理员，则填写该项

    private Administrator administrator;//如果是面向平台的管理员则填写该项

    private Administrator creator;//创建者Id

    public Auth() {
    }

    public Auth(int auId, String auName, int auFaceTo, Merchant merchant, Administrator administrator, Administrator creator) {

        this.auId = auId;
        this.auName = auName;
        this.auFaceTo = auFaceTo;
        this.merchant = merchant;
        this.administrator = administrator;
        this.creator = creator;
    }

    public int getAuId() {

        return auId;
    }

    public void setAuId(int auId) {
        this.auId = auId;
    }

    public String getAuName() {
        return auName;
    }

    public void setAuName(String auName) {
        this.auName = auName;
    }

    public int getAuFaceTo() {
        return auFaceTo;
    }

    public void setAuFaceTo(int auFaceTo) {
        this.auFaceTo = auFaceTo;
    }

    public Merchant getMerchant() {
        return merchant;
    }

    public void setMerchant(Merchant merchant) {
        this.merchant = merchant;
    }

    public Administrator getAdministrator() {
        return administrator;
    }

    public void setAdministrator(Administrator administrator) {
        this.administrator = administrator;
    }

    public Administrator getCreator() {
        return creator;
    }

    public void setCreator(Administrator creator) {
        this.creator = creator;
    }

    @Override
    public String toString() {
        return "Auth{" +
                "auId=" + auId +
                ", auName='" + auName + '\'' +
                ", auFaceTo=" + auFaceTo +
                ", merchant=" + merchant +
                ", administrator=" + administrator +
                ", creator=" + creator +
                '}';
    }
}
